import Vue from 'vue'
import App from './App.vue'
import './assets/css/index.scss'
import router from './router'
import store from './store'
import '@/assets/js/iconfont.js'
import '@/assets/js/iconfont1.js'
import '@/assets/js/iconfont2.js'
import '@/assets/js/iconfont3.js'
import {
  Button,
  Carousel,
  CarouselItem,
  DatePicker,
  Form,
  FormItem, Icon,
  Input,
  Notification, Option, Pagination,
  Radio,
  RadioGroup, Rate, Select,
  Slider, Upload
} from "element-ui";
import * as API from '@/api'

Vue.use(Carousel)
    .use(CarouselItem)
    .use(Slider)
    .use(Form)
    .use(FormItem)
    .use(Input)
    .use(RadioGroup)
    .use(Radio)
    .use(DatePicker)
    .use(Button)
    .use(Option)
    .use(Select)
    .use(Upload)
    .use(Rate)
    .use(Pagination)
    .use(Icon)
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  //全局事件总线
  beforeCreate() {
    Vue.prototype.$bus=this
    Vue.prototype.$API=API
    Vue.prototype.$notify = Notification;
  },
  router,
  store
}).$mount('#app')
